// OneStringLoadAssignStratigy.cpp: implementation of the OneStringLoadAssignStratigy class.
//
//////////////////////////////////////////////////////////////////////

#include "stdafx.h"
#include "OneStringLoadAssignStratigy.h"
#include "JoinInfo.h"
#include "SHLoadAssignInfo.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////

IMPLEMENT_DYNAMIC_CREATE(OneStringLoadAssignStratigy, SHLoadAssignStratigy, SHLoadAssignStratigy::eONESTRING)

OneStringLoadAssignStratigy::OneStringLoadAssignStratigy()
{

}

OneStringLoadAssignStratigy::~OneStringLoadAssignStratigy()
{

}

BOOL OneStringLoadAssignStratigy::Execute()
{
/*	ASSERT(GetSH());

	if(GetSH()->GetStringCount() != 1)
	{
		return FALSE;
	}

	const CArray<PartString*, PartString*>& theStrings = GetSH()->GetSupportStrings();
	PartString* pString = theStrings.GetAt(0);
	Part* pPart = pString->GetFirstPart();
	JointInfo info(pPart);
	if(info.GetJointNum() == 3)
	{
		pString->WorkLoad(UeVector(0,0,GetSH()->GetWorkLoad()/2));
		pString->StructureLoad(UeVector(0,0,GetSH()->GetStructureLoad()/2));
		pString->AssembleLoad(UeVector(0,0,GetSH()->GetAssemblyLoad()/2));
		pString->HotDisplacement(GetSH()->GetHotDisplacementZ());
	}
	else
	{
		pString->WorkLoad(UeVector(0,0,GetSH()->GetWorkLoad()));
		pString->StructureLoad(UeVector(0,0,GetSH()->GetStructureLoad()));
		pString->AssembleLoad(UeVector(0,0,GetSH()->GetAssemblyLoad()));
		pString->HotDisplacement(GetSH()->GetHotDisplacementZ());
	}*/
	return TRUE;
}